package cn.zhp.service.impl;

import cn.zhp.entity.SysUser;
import cn.zhp.mapper.SysUserMapper;
import cn.zhp.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SysUserServiceImpl extends BaseServiceImpl<SysUser> implements SysUserService {

    @Autowired
    SysUserMapper userMapper;


    @Override
    public List<SysUser> selectByRid(long rid){
        return userMapper.selectByRid(rid);
    }

    @Override
    public List<SysUser> selectNoRole(long rid, long oid){
        return userMapper.selectNoRole(rid,oid);
    }
}
